package com.yzm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yzm.mapper.HouseholdMapper;
import com.yzm.pojo.Household;
import com.yzm.service.HouseholdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HouseholdServiceImpl extends ServiceImpl<HouseholdMapper, Household> implements HouseholdService {

    @Autowired
    private HouseholdMapper householdMapper;

    @Override
    public List<Household> getHouseholdById(Integer accountId) {
        return householdMapper.getHouseholdById(accountId);
    }
}
